<?php /* @var $object Employee*/?>
<?php foreach ($objects as $object):?>
<?php if(sfConfig::get('group_by')){
    $method_g = 'get'.ucfirst(sfConfig::get('group_by'));
    if ( empty($last_group) || $last_group != $object->$method_g() ) {
        $last_group = $object->$method_g();
        echo "<tr><td colspan='15' class='group_by'>".$last_group."</td></tr>";
    }
}
?>
        <?php include_partial('Reports/row',array('object'=>$object,'fields'=>$fields)); ?>
<?php endforeach;?>